package com.bdth.weget.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 出车登记
 * </p>
 *
 * @author LGP
 * @since 2019-07-10
 */
@TableName("pt_car_use")
public class CarUse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用车日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date usedate;
    /**
     * 使用车辆ID
     */
    private Integer carid;
    /**
     * 车牌号
     */
    private String plateno;
    /**
     * 出发地点
     */
    private String srcaddress;
    /**
     * 目的地点
     */
    private String taraddress;
    /**
     * 使用人
     */
    private String whouse;
    /**
     * 随行人员
     */
    private String offices;
    /**
     * 事由
     */
    private String display;
    /**
     * 仪表盘初始值
     */
    private Integer dashstart;
    /**
     * 仪表盘值
     */
    private Integer dashend;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getUsedate() {
        return usedate;
    }

    public void setUsedate(Date usedate) {
        this.usedate = usedate;
    }

    public Integer getCarid() {
        return carid;
    }

    public void setCarid(Integer carid) {
        this.carid = carid;
    }

    public String getPlateno() {
        return plateno;
    }

    public void setPlateno(String plateno) {
        this.plateno = plateno;
    }

    public String getSrcaddress() {
        return srcaddress;
    }

    public void setSrcaddress(String srcaddress) {
        this.srcaddress = srcaddress;
    }

    public String getTaraddress() {
        return taraddress;
    }

    public void setTaraddress(String taraddress) {
        this.taraddress = taraddress;
    }

    public String getWhouse() {
        return whouse;
    }

    public void setWhouse(String whouse) {
        this.whouse = whouse;
    }

    public String getOffices() {
        return offices;
    }

    public void setOffices(String offices) {
        this.offices = offices;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public Integer getDashstart() {
        return dashstart;
    }

    public void setDashstart(Integer dashstart) {
        this.dashstart = dashstart;
    }

    public Integer getDashend() {
        return dashend;
    }

    public void setDashend(Integer dashend) {
        this.dashend = dashend;
    }

    @Override
    public String toString() {
        return "CarUse{" +
        ", id=" + id +
        ", usedate=" + usedate +
        ", carid=" + carid +
        ", plateno=" + plateno +
        ", srcaddress=" + srcaddress +
        ", taraddress=" + taraddress +
        ", whouse=" + whouse +
        ", offices=" + offices +
        ", display=" + display +
        ", dashstart=" + dashstart +
        ", dashend=" + dashend +
        "}";
    }
}
